<template>
    <div class="user-card">
        <div class="avatar" style="--size: 18vw; --avatar: url(https://q4.itc.cn/q_70/images03/20241013/ee1444dfd7124947904b3c9c62efdece.jpeg)"></div>
        <div class="username text-ellipsis">椰果林</div>
        <div class="userinfo">
            <div><span>3</span> 关注</div>
            <div><span>0</span> 粉丝</div>
            <div>Lv. <span>4</span></div>
        </div>
    </div>
</template>

<script setup>

</script>

<style scoped lang="less">
.user-card {
    width: 100%;
    height: 60vw;
    box-sizing: border-box;
    padding-top: 30vw;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    .username {
        font-size: 4vw;
        font-weight: bold;
        color: #333;
    }

    .userinfo {
        display: flex;
        gap: 3vw;
        
        div, span {
            font-size: 3.5vw;
            color: #333;
        }
    }

    &::before {
        content: "";
        display: block;
        width: 150vw;
        height: 70vw;
        border-radius: 50%;
        background-color: #56c5f12f;
        position: absolute;
        top: -30vw;
        left: 50%;
        transform: translateX(-50%);
    }
}
</style>